#ifndef FIREWALL_H
#define FIREWALL_H

#include "SysLib.h"
#include "Common.h"
#include "Tunnel.h"

#define IP_PROTO_TCP 6
#define IP_PROTO_UDP 17

void firewall_allow_port(int protocol, int port);

bool filter_upstream_pack(unsigned char * pack, int size, PTunnel tunnel);

void do_init_firewall_ports(char* ports, int protocal);

#endif
